const state = {
  categories: []
}

const mutations = {
  SET_CATEGORIES: (state, data) => {
    state.categories = data
  }
}

const actions = {
  setCategories ({ commit }, data) {
    console.log('setCategories', data)
    commit('SET_CATEGORIES', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
